package com.ai.aicontact.busi.entity;
 

import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonFormat;

/***************
 *author: autogen
 *version: 2016-08-11 09:15:47.734
 */
@Entity
@Table(name = "EXEC_ADV_FILE")
public class ExecAdvFile implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "EXEC_ADV_FILE";

    /**${param.comment} */
	public static final String ALIAS_FILE_ID = "FILE_ID";
    /**${param.comment} */
	public static final String ALIAS_ACT_ID = "ACT_ID";
    /**${param.comment} */
	public static final String ALIAS_CRITICAL_POINT_ID = "CRITICAL_POINT_ID";
    /**${param.comment} */
	public static final String ALIAS_FILE_NAME = "FILE_NAME";
    /**${param.comment} */
	public static final String ALIAS_FILE_ORIGINAL_NAME = "FILE_ORIGINAL_NAME";
    /**${param.comment} */
	public static final String ALIAS_FILE_SRC = "FILE_SRC";
    /**${param.comment} */
	public static final String ALIAS_FILE_TYPE = "FILE_TYPE";
    /**${param.comment} */
	public static final String ALIAS_FILE_MODULE = "FILE_MODULE";
    /**${param.comment} */
	public static final String ALIAS_PARENT_FILE_ID = "PARENT_FILE_ID";
    /**${param.comment} */
	public static final String ALIAS_STATE = "STATE";
    /**${param.comment} */
	public static final String ALIAS_CREATE_DATE = "CREATE_DATE";
    /**${param.comment} */
	public static final String ALIAS_EXT1 = "EXT1";
    /**${param.comment} */
	public static final String ALIAS_EXT2 = "EXT2";
	
	

 	@Id 
    @GeneratedValue(strategy=GenerationType.SEQUENCE,generator="EXEC_ADV_FILE$SEQ")
	@SequenceGenerator(name="EXEC_ADV_FILE$SEQ",sequenceName="EXEC_ADV_FILE$SEQ",allocationSize=1)
	@Column(name = "FILE_ID", unique = true, nullable = false)
    public java.lang.Long fileId;
  
 	@Column(name = "ACT_ID")
    public java.lang.String actId;
  
 	@Column(name = "CRITICAL_POINT_ID")
    public java.lang.Long criticalPointId;
  
 	@Column(name = "FILE_NAME")
    public java.lang.String fileName;
  
 	@Column(name = "FILE_ORIGINAL_NAME")
    public java.lang.String fileOriginalName;
  
 	@Column(name = "FILE_SRC")
    public java.lang.String fileSrc;
  
 	@Column(name = "FILE_TYPE")
    public java.lang.Integer fileType;
  
 	@Column(name = "FILE_MODULE")
    public java.lang.String fileModule;
  
 	@Column(name = "PARENT_FILE_ID")
    public java.lang.Long parentFileId = 0l;
  
 	@Column(name = "STATE")
    public java.lang.Integer state;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_DATE")
 	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public java.util.Date createDate;
  
 	@Column(name = "EXT1")
    public java.lang.String ext1;
  
 	@Column(name = "EXT2")
    public java.lang.Long ext2;
  





	public java.lang.Long getFileId() {
		return this.fileId;
	}
	
	public void setFileId(java.lang.Long value) {
		this.fileId = value;
	}

	public java.lang.String getActId() {
		return this.actId;
	}
	
	public void setActId(java.lang.String value) {
		this.actId = value;
	}

	public java.lang.Long getCriticalPointId() {
		return this.criticalPointId;
	}
	
	public void setCriticalPointId(java.lang.Long value) {
		this.criticalPointId = value;
	}

	public java.lang.String getFileName() {
		return this.fileName;
	}
	
	public void setFileName(java.lang.String value) {
		this.fileName = value;
	}

	public java.lang.String getFileOriginalName() {
		return this.fileOriginalName;
	}
	
	public void setFileOriginalName(java.lang.String value) {
		this.fileOriginalName = value;
	}

	public java.lang.String getFileSrc() {
		return this.fileSrc;
	}
	
	public void setFileSrc(java.lang.String value) {
		this.fileSrc = value;
	}

	public java.lang.Integer getFileType() {
		return this.fileType;
	}
	
	public void setFileType(java.lang.Integer value) {
		this.fileType = value;
	}

	public java.lang.String getFileModule() {
		return this.fileModule;
	}
	
	public void setFileModule(java.lang.String value) {
		this.fileModule = value;
	}

	public java.lang.Long getParentFileId() {
		return this.parentFileId;
	}
	
	public void setParentFileId(java.lang.Long value) {
		this.parentFileId = value;
	}

	public java.lang.Integer getState() {
		return this.state;
	}
	
	public void setState(java.lang.Integer value) {
		this.state = value;
	}

	public java.util.Date getCreateDate() {
		return this.createDate;
	}
	
	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}

	public java.lang.String getExt1() {
		return this.ext1;
	}
	
	public void setExt1(java.lang.String value) {
		this.ext1 = value;
	}

	public java.lang.Long getExt2() {
		return this.ext2;
	}
	
	public void setExt2(java.lang.Long value) {
		this.ext2 = value;
	}


	
	public ExecAdvFile() {
	}
	
	public ExecAdvFile(boolean qryflag) {
	    if(qryflag){
	    		this.fileId = null;
				this.actId = null;
				this.criticalPointId = null;
				this.fileName = null;
				this.fileOriginalName = null;
				this.fileSrc = null;
				this.fileType = null;
				this.fileModule = null;
				this.parentFileId = null;
				this.state = null;
				this.createDate = null;
				this.ext1 = null;
				this.ext2 = null;
			    }
	}


	public ExecAdvFile(
	    java.lang.Long inFileId,
	    java.lang.String inActId,
	    java.lang.Long inCriticalPointId,
	    java.lang.String inFileName,
	    java.lang.String inFileOriginalName,
	    java.lang.String inFileSrc,
	    java.lang.Integer inFileType,
	    java.lang.String inFileModule,
	    java.lang.Long inParentFileId,
	    java.lang.Integer inState,
	    java.util.Date inCreateDate,
	    java.lang.String inExt1,
		java.lang.Long inExt2
	 ) {
		super();
				this.fileId = inFileId;
				this.actId = inActId;
				this.criticalPointId = inCriticalPointId;
				this.fileName = inFileName;
				this.fileOriginalName = inFileOriginalName;
				this.fileSrc = inFileSrc;
				this.fileType = inFileType;
				this.fileModule = inFileModule;
				this.parentFileId = inParentFileId;
				this.state = inState;
				this.createDate = inCreateDate;
				this.ext1 = inExt1;
				this.ext2 = inExt2;
			}

 


}

